<div class="section">
  <h3 class="title">店长博客</h1>
</div>
<div class='post'>
  <table width=580>
    <% for blog in @blogs %>
      <tr>
        <td><div class='title'><%=link_to "#{blog.title}", {:action=>:view, :id=>blog} %></div></td>
      </tr>
      <tr>
        <td height=20 valign="top"> <%=blog.created_at.to_s(:chs)%> </td>
        </tr>
        <tr>
          <td><div class='entry'><%=h truncate(blog.short_description,100)%></div></td>
        </tr>
        <tr>
          <td>
            类别：<%=link_to category_name(blog), category_link(blog) %>
            <%=" | 评论(#{blog.comments.size}) | 浏览(#{blog.view_count}) | " %>)
            <%=link_to("编辑", :action=>"edit", :id=>blog) %> | 
            <%=link_to("删除",  {:action=>"delete", :id=>blog},:confirm=>"您确定要彻底删除这篇文章及其所有评论吗？") %>
          </td>
        </tr>
      <%end%>
    </table>
  
  </div>
